# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=d-spy
pkgver=1.10.0
pkgrel=0
pkgdesc="Like d-feet, but written in C and blisteringly fast"
url="https://gitlab.gnome.org/GNOME/d-spy"
license="GPL-3.0-or-later"
arch="all !s390x !riscv64" # limited by gtk4.0 and libadwaita
makedepends="meson desktop-file-utils glib-dev gtk4.0-dev libadwaita-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://gitlab.gnome.org/GNOME/d-spy/-/archive/$pkgver/d-spy-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
7802baeb3b7d9d7656668943baf242d7af3d79226920ffb0f79a6e5501971ccda4dbacdd75c74eb2e92408223dc8ef9a218ec55cbe7566cd2cf4b993888758e3  d-spy-1.10.0.tar.gz
"
